// 基本样式
* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

// 版心
.w {
    width: 1200px;
    margin: 0 auto;
}

// 去除横向滚动条
body {
    overflow-x: hidden;
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           


// 顶部导航栏
.top {
    display: flex;
    justify-content: space-between;
    color: #000;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px #747474;
    position: fixed;
    width: 100vw;

    .logo {
        width: 8vw;
        background-color: #422f2f;
        color: white;
        text-align: center;
        line-height: 35px;
        border-radius: 20px;
        margin: 5px;
    }

    .nav {
        width: 30vw;
    }
}

// 背景
.bg {
    background: url(../img/111.jpg) no-repeat;
    background-size: 100%;
    width: 1980px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    // 文字
    .text {
        color: white;
        left: 40vw;
        position: absolute;

    }

    // 箭头动画
    @keyframes bounce {

        0%,
        80%,
        100% {
            transform: translateY(0);
        }

        20% {
            transform: translateY(-50px);
            opacity: 0.5;
        }
    }

    // 箭头
    .arrow {
        width: 30px;
        height: 30px;
        position: absolute;
        font-size: 40px;
        bottom: 60px;
        left: 50%;
        animation: bounce linear 2s infinite;
        cursor: pointer;
        a {
            text-decoration: none;
            color: white;
        }
    }
}

// 主页
.home_page {
    margin-top: 60px;
    display: flex;

    // 左侧用户信息
    .left {
        width: 260px;
        height: 686px;

        .left_user {
            height: 314px;
            border-radius: 15px;
            background-color: white;
            box-shadow: 0 0 15px #8f8e8e;
            display: flex;
            flex-direction: column;
            align-items: center;

            .user_avatar {
                height: 82px;
                width: 82px;
                border: 1px solid #979797;
                border-radius: 50%;
                margin: 20px 0;
                overflow: hidden;

                img {
                    height: 82px;
                    width: 82px;
                    border-radius: 50%;
                }
            }

            .user_name {
                font-weight: 600;
                font-size: 20px;
                color: #414040;
                margin-bottom: 20px;
            }

            .number {
                display: flex;

                .article {
                    width: 60px;
                    height: 60px;
                }

                .tags {
                    height: 60px;
                    width: 60px;
                }
            }

            .add {
                width: 198px;
                height: 30px;
                border: 1px solid rgb(31, 31, 190);
                border-radius: 7px;
                margin-top: 10px;

                img {
                    height: 16px;
                    width: 16px;
                    margin-left: 10px;
                }

                span {
                    line-height: 30px;
                }
            }
        }

        // 标签
        .left_tags {
            height: 122px;
            border-radius: 15px;
            background-color: white;
            box-shadow: 0 0 15px #8f8e8e;
            margin: 20px 0;
            padding: 20px;

            .tags {
                font-weight: 600;
                font-size: 20px;
                margin-bottom: 10px;

                img {
                    height: 24px;
                    width: 24px;
                }
            }

            .js {
                .one {
                    color: #c7f24e;
                    font-size: 18px;
                    text-decoration: none;
                }

                .two {
                    color: #AEAE1C;
                    font-size: 20px;
                    margin-left: 10px;
                    text-decoration: none;
                }
            }
        }

        // 日期
        .left_archives {
            height: 250px;
            border-radius: 15px;
            background-color: white;
            box-shadow: 0 0 15px #8f8e8e;
            padding: 20px;

            .tags {
                font-weight: 600;
                font-size: 20px;
                margin-bottom: 10px;

                img {
                    height: 24px;
                    width: 24px;
                }
            }

            .date {
                a {
                    display: block;
                    padding: 8px;
                    font-size: 18px;
                    color: #585858;
                    text-decoration: none;
                }
            }

            a {
                display: block;
                text-decoration: none;
                padding: 8px;
                font-size: 16px;
            }
        }

        .left_user:hover {
            box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.7);
        }

        .left_tags:hover {
            box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.7);
        }

        .left_archives:hover {
            box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.7);
        }
    }

    // 所有文章
    .article_all {
        margin-left: 20px;
        width: 920px;

        a {
            text-decoration: none;
            color: #000;

            .article {
                width: 920px;
                height: 260px;
                box-shadow: 0 0 15px #8f8e8e;
                border-radius: 20px;
                overflow: hidden;
                display: flex;
                margin-bottom: 30px;

                .img {
                    width: 414px;
                    height: 264px;
                    overflow: hidden;

                    img {
                        border-radius: 10px;
                        width: 414px;
                        height: 264px;
                    }
                }

                .content {
                    padding: 50px;

                    .title {
                        font-size: 22px;
                    }

                    .date {

                        img {
                            width: 16px;
                            height: 15px;

                        }

                    }
                }
            }
        }

        .lili {
            flex-direction: row-reverse;
            justify-content: space-between
        }

        .article:hover {
            box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.7);

            .img {
                img {
                    transition: all .5s;
                    height: 260px;
                    transform: scale(1.2);
                }
            }

        }
    }
}